home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _WordQuit.au3 < prev    next >
Text File  |  2007-09-08  |  460b  |  11 lines

  1. ; *******************************************************
  2. ; Example 1 - Create an invisible word window, open a
  3. ;               document, retrieve some information and Quit
  4. ; *******************************************************
  5. ;
  6. #include <Word.au3>
  7. $oWordApp = _WordCreate (@ScriptDir & "\Test.doc", 0, 0)
  8. ; Display the text within the document
  9. $sText = $oWordApp.ActiveDocument.Range.Text
  10. MsgBox(0, "Document Text", $sText)
  11. _WordQuit ($oWordApp)